﻿@model OnlineStore.Web.Models.User.AddAddressModel

@{
    ViewBag.Title = "title";
    Layout = "_AddAddress";
}

<form asp-action="AddAddress" asp-controller="User" method="post">
    <div class="AddAddressMain">
        <div class="container">
            <h5 style="background-color:darkseagreen; color:white">收货人信息</h5>
            <a href="#AddressTable" class="btn" data-toggle="collapse" style="background-color:darkseagreen;width:100%; text-align:center;">👇</a>

            <table id="AddressTable" class="collapse">
                @*<thead>
                    <tr>
                        <td style="background-color:cadetblue">
                            收货人信息
                        </td>
                        <td style="width:250px;" ></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>


                    </tr>
                </thead>*@
                <tbody id="TableBody">
                    @*<tr>
                        <td class="col-lg-2 col-md-2 col-xs-2" style="width:100px;text-align:center;">
                        </td>
                        <td class="col-lg-2 col-md-2 col-xs-2" style="width:150px;text-align:center;">
                        </td>
                        <td class="col-lg-2 col-md-2 col-xs-2" style="width:100px;text-align:center;"></td>
                        <td class="col-lg-2 col-md-2 col-xs-2" style="width:100px;text-align:center;"></td>
                        <td class="col-lg-2 col-md-2 col-xs-2" style="width:100px;text-align:center;"></td>
                        <td class="col-lg-2 col-md-2 col-xs-2" style="width:100px;text-align:center;"></td>


                    </tr>*@
                </tbody>
            </table>

            @*<div class="modal fade" id="Mymodal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" ">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">*@

            <div class="AddressMessage container" style="border: 1px solid gray;">

                <h4 style="width:1800px;">添加收货地址</h4>
                @*<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>*@
                @*<div class="modal-body">*@
                <div class="form-group">
                    @*<label for="txt_departmentname">所在地区：</label>
                下拉菜单
                <div class="dropdown">
                    <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" >广东省/中山市</button>
                    <div class="dropdown-menu">
                        <ul class="nav nav-tabs">
                            <li class="nav-item">
                                <a class="nav-link active" href="#">省份</a>
                                <div ></div>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="#">城市</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="#">区县</a>
                            </li>
                        </ul>*@


                    <fieldset>
                        <form action="#">
                            <label for="addr-show">
                                您选择的是：
                                <input type="text" id="addr-show" disabled="disabled">
                            </label>
                            <br />

                            <!--省份选择-->
                            <select id="prov" onchange="showCity(this)">
                                <option>=请选择省份=</option>

                            </select>

                            <!--城市选择-->
                            <select id="city" onchange="showCountry(this)">
                                <option>=请选择城市=</option>
                            </select>

                            <!--县区选择-->
                            <select id="country" onchange="selecCountry(this)">
                                <option>=请选择县区=</option>
                            </select>
                            <button type="button" class="btn met1 btn-primary btn-default" onClick="showAddr()">确定</button>
                        </form>
                    </fieldset>
                </div>



                <div class="form-group">
                    <label for="UserName">收货人</label>
                    <input type="text" name="txt_parentdepartment" class="form-control" id="username" placeholder="姓名" asp-for="UserName">
                    <span asp-validation-for="UserName"></span>
                </div>


                <div class="form-group">
                    <label for="txt_departmentlevel">详细地址</label>
                    <input type="text" name="detailsAddress" class="form-control" id="detailsAddress" placeholder="详细地址" asp-for="MainAddress">
                    <span asp-validation-for="MainAddress"></span>
                </div>
                <div class="form-group">
                    <label for="txt_telephone">手机号码</label>
                    <input type="text" name="Usertelephone" class="form-control" id="Usertelephone" placeholder="手机号码" asp-for="UserTelephone">
                </div>
                @*<button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span>关闭</button>*@
                <button type="submit" id="btn_submit" class="btn btn-danger" data-toggle="modal"><span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>添加</button>
            </div>

        </div>



    </div>
    </form>











